package com.llh.uua.api

import com.llh.uua.model.dto.UserDto
import org.springframework.web.bind.annotation.*
import javax.validation.Valid

/**
 *
 *
 * Created At 2021/3/14 16:17
 * @author llh
 */
@RestController
@RequestMapping("demo/valid")
class ValidDemoAPI {

    @PostMapping("password")
    fun get(@Valid @RequestBody userDto: UserDto): UserDto {
        return userDto
    }
}